package com.threegroup.common.dao;


import com.threegroup.common.dto.OrdersQueryDTO;
import com.threegroup.common.entity.OrdersEntity;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * 订单表
 *
 * @author kohlerm kohlerm@163.com
 * @since 1.0.0 2022-12-16
 */
@Mapper
public interface OrdersDao{
    int deleteByPrimaryKey(Long id);

    int insert(OrdersEntity record);

    int insertSelective(OrdersEntity record);

    OrdersEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrdersEntity record);

    int updateByPrimaryKey(OrdersEntity record);

    List<OrdersEntity> selectAll();

    List<OrdersEntity> selectAllByQuery(OrdersQueryDTO ordersQueryDTO);

    OrdersEntity selectByNumber(String orderNumber);

    List<OrdersEntity> selectAllByUserId(Long id);
}